package com.shangxia.lucky.lucky.common;

import com.shangxia.lucky.common.util.file.ReadTXTUtil;
import com.shangxia.lucky.lucky.ConfigText;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.util.List;

/**
 * @author zhouya38158
 * @date 2021/8/27 17:23
 */
@Component
@Slf4j
public class DataFactory {
    private ConfigText configText;

    public List<List<Integer>> getReadList(String fileName) {
        try {
            ReadTXTUtil.readRealCode(configText.getBananaAbsolutePath(), fileName);
        } catch (IOException e) {
            log.error("文件读取失败{}", configText.getBananaAbsolutePath() + "/" + fileName);
        }
        return null;
    }
}
